<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
		<meta content="yes" name="apple-mobile-web-app-capable" />
		<meta name="apple-mobile-web-app-status-bar-style" content="blank">
		<meta content="telephone=no" name="format-detection" />
		<title>首页</title>
		<script src="js/fastclick.js" type='application/javascript' charset="utf-8"></script>
		<script src="js/flexible.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/flexible_css.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/jquery-1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="css/index.css"/>
	</head>
	<body>
		<a href="" class="header">
			<img  src="img/luobanner.png"/>
		</a>
		<div class="content">
			
			<form action="" method="post">
				<div class="title">
					现在咨询<span>【获取】</span>最低报价
				</div>
				<h1>已提交了522人</h1>
				<div class="name">
					<p>名字</p>
					<input type="" name="" id="" value="" placeholder="请输入姓名"/>
				</div>
				<div class="phone">
					<p>电话</p>
					<input type="" name="" id="" value="" placeholder="请输入手机号"/>
				</div>
				<div class="demand">
					<p>您的需求</p>
					<textarea name="" rows="" cols="" placeholder="请输入您的需求"></textarea>
				</div>
				<input class="submit" type="submit" value="提交"/>
			</form>
		</div>
		<a href="" class="footer">
			<img  src="img/luo.png"/>
		</a>
		<div class="dome">
			<form action="" method="post">
				<div class="title">
					现在咨询<span>【获取】</span>最低报价
				</div>
				<h1>已提交了522人</h1>
				<div class="name">
					<p>名字</p>
					<input type="" name="" id="" value="" placeholder="请输入姓名"/>
				</div>
				<div class="phone">
					<p>电话</p>
					<input type="" name="" id="" value="" placeholder="请输入手机号"/>
				</div>
				<div class="demand">
					<p>您的需求</p>
					<textarea name="" rows="" cols="" placeholder="请输入您的需求"></textarea>
				</div>
				<input class="submit" type="submit" value="提交"/>
			</form>
		</div>
		<script type="text/javascript">
			$('.content form .phone input').change(function(){
				var value=$('#phone').val()
				var myreg=/^[1][3,4,5,7,8][0-9]{9}$/; 
				
				if(!myreg.test(value)){
					alert("请输入正确的手机号码")
				}else{
					console.log(0)
				}
			})
			$('.dome form .phone input').change(function(){
				var value=$('#phone').val()
				var myreg=/^[1][3,4,5,7,8][0-9]{9}$/; 
				
				if(!myreg.test(value)){
					alert("请输入正确的手机号码")
				}else{
					console.log(0)
				}
			})
		</script>
	</body>
</html>
